package com.situ.gym.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.situ.gym.pojo.UserComment;
import com.situ.gym.mapper.UserCommentMapper;
import com.situ.gym.pojo.query.UserCommentQuery;
import com.situ.gym.service.IUserCommentService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Chuan
 * @since 2025-09-08
 */
@Service
public class UserCommentServiceImpl extends ServiceImpl<UserCommentMapper, UserComment> implements IUserCommentService {

    @Override
    public IPage<UserComment> list(UserCommentQuery query) {
        Page<UserComment> page = new Page<>(query.getPage(), query.getSize());
        return baseMapper.selectPage(page, null);
    }
}
